import BuffUtil from '@/BuffUtil';
import UnitSpellEvent from '@/event/UnitSpellEvent';
export default class Item_邪恶镰刀 {
    static id = 'Axei';
    static 名称: string = '邪恶镰刀';
    static 描述: string = '该单位受到的伤害增加了';
    static 图标: string = 'assets\\item\\INV_Sword_09.blp';
    static buffId: string = 'buff_item_yangdao';
    static buffType: AppBuffType = {
        id: 'buff_item_yangdao',
        name: Item_邪恶镰刀.名称,
        ubertip: Item_邪恶镰刀.描述,
        art: Item_邪恶镰刀.图标,
        dur: 4,
        attribute: {
            全伤害减免: -0.25,
        },
        isDebuff: true,
    };
    static 添加技能(目标: unit) {
        UnitAddAbility(目标, Item_邪恶镰刀.id);
    }
    static 释放(x: number, y: number, 来源?: unit, 目标?: unit, d?: any) {
        BuffUtil.addBuff(目标, Item_邪恶镰刀.buffId, 来源);
    }
    constructor() {
        BuffUtil.registerBuffType(Item_邪恶镰刀.buffType);
        se.onUnitSpellEffect(Item_邪恶镰刀.spellEffect, Item_邪恶镰刀.id);
    }
    static spellEffect(this: void, d: UnitSpellEvent) {
        Item_邪恶镰刀.释放(d.spellTargetX, d.spellTargetY, d.trigUnit, d.spellTargetUnit, d);
    }
}
